package com.zhbit.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.LabelService;
import com.zhbit.table.Label;

public class InsertlabelAction extends ActionSupport{
/**
	 * 
	 */
private static final long serialVersionUID = 1L;
private LabelService ls;
private Label label;
public Label getLabel() {
	return label;
}

public void setLabel(Label label) {
	this.label = label;
}

public void setLs(LabelService ls) {
	this.ls = ls;
}

public LabelService getLs() {
	return ls;
}
public String execute() throws Exception {
	label.setType(1);
       ls.addlabel(label);
       return SUCCESS;
}
}
